<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck" %>
<%@page import="java.util.*,model.*,util.*,control.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>

            <%
           /*
           *验证权限
           *author 宋智洋
           *data 2011-11-26
           *update 胡瑾
           *data 2011-12-01
           *增加了userId
           */
			String flag = (String)session.getAttribute("flag");
			String userId = (String)session.getAttribute("userId");
			int studentId = Integer.parseInt(userId);
						
			if (flag != "student"|| flag==null )
			{
				%>
            <script language="javascript">
				     alert("您没有学生权限,请重新登录"); window.location.href="../../index.jsp";
				    </script>
            <%
				
			}else{
				Student student = new Student();
				StudentControl sc = new StudentControl();
				student = sc.GetStudent(studentId);
				out.print("<p>"+student.getStudentName()+"   欢迎您</p>");
			}
           %>
    

        <table width="760" border="0" align="left">
          <tr>
            <th width="123">胡瑾</th>
            <td width="627">&nbsp;</td>
          </tr>
          <tr>
            <th>宋智洋</th>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <th>陈星</th>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <th>高洪娟</th>
            <td>&nbsp;</td>
          </tr>
        </table>
       
</html>
